//
//  KColumnBaseLogic.h
//  MengLiao
//
//  Created by xiuxin on 2022/7/15.
//  Copyright © 2022 ZHBen. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "KColumnHorizontalView.h"
#import "KColumnInfo.h"

@interface KColumnBaseLogic : NSObject

@property (readonly,strong,nonatomic) KColumnHorizontalView * horizontalView;

@property (weak,nonatomic) id<KColumnHorizontalDelegate> delegate;

- (instancetype)initWithControl:(NSObject<KColumnListControl> *)control;

- (NSArray<KColumnInfo *> *)columnList;

- (void)reloadHorizontalColumns:(NSArray<KColumnInfo *> *)columnList headerView:(UIView *)headerView toIndex:(NSInteger)toIndex;

- (void)reloadVerticalColumns:(NSArray<KColumnInfo *> *)columnList;

- (void)reload;

- (void)startKVO:(UIScrollView *)containerView;

- (void)stopKVO;

@end
